<?php 
use Yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\widgets\LinkPager;

echo $this->render('_centernav');
?>
<link type="text/css" href="/assets/time/css/jquery-ui-1.8.17.custom.css" rel="stylesheet" />
<link type="text/css" href="/assets/time/css/jquery-ui-timepicker-addon.css" rel="stylesheet" />
<?php $form = ActiveForm::begin(['id' => 'user-search-form'],['action'=>'center/wallet'],['method'=>'get'],['class'=>'form-inline well well-sm']); ?>
    <div class="form-group">
       查询交易记录： <input id="virtual_addtime" name="virtual_addtime" class="ui_timepicker" placeholder="用户名/用户ID" type="text" value="<?php if(isset($virtual_addtime)){echo $virtual_addtime;}?>">
	   <?= Html::submitButton('搜索', ['class' => 'btn btn-primary']) ?>
    <?php ActiveForm::end(); ?>
    </div>
		
<div>
 <div class="form-group" style='margin-top:100px'>
 <h1><font style="border-bottom:4px solid #000;">交易记录</font></h1></div>
	
	<center><table border=1>
		<tr>
			<th>日期</th>
			<th>交易平台</th>
			<th>交易金额</th>
		</tr>
		<?php foreach($wallet as $k=>$v){?>
		<tr>
			<td><?php echo date('YmdHis',$wallet->virtual_addtime);?></td>
			<td>本站</td>
			<td><?php echo date('YmdHis',$wallet->vartual_detail);?></td>
		</tr>
		<?php }?>
		<?php echo LinkPager::widget([
				'pagination' => $pagination,
				'prevPageLabel'=>'上一页',
				'nextPageLabel'=>'下一页',
			]);?>
	</table>
	</center>
</div>
<script type="text/javascript" src="/assets/time/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="/assets/time/js/jquery-ui-1.8.17.custom.min.js"></script>
	<script type="text/javascript" src="/assets/time/js/jquery-ui-timepicker-addon.js"></script>
    <script type="text/javascript" src="/assets/time/js/jquery-ui-timepicker-zh-CN.js"></script>
 <script type="text/javascript">
 var $j = jQuery.noConflict(); 
    $j(function () {
        $j(".ui_timepicker").datetimepicker({
            //showOn: "button",
            //buttonImage: "./css/images/icon_calendar.gif",
            //buttonImageOnly: true,
            showSecond: true,
            timeFormat: 'hh:mm:ss',
            stepHour: 1,
            stepMinute: 1,
            stepSecond: 1
        })
    })
    </script>